package com.bw.module_home.model.api

import com.bw.lib_net.entity.ResponseEntity
import com.bw.module_home.model.entity.SimpleVideoEntity
import retrofit2.http.GET
import retrofit2.http.Query

/**
 * @Author : ZhouZiYao
 * @Time : On 2023/11/23 10:34
 * @Description :
 */
interface VideoApi {

    /**
     * 获取推荐信息接口
     */
    @GET("/videomulti/getRecommendMutilVideo")
    suspend fun getRecommendSimpleVideo(@Query("page") page:Int,@Query("pagesize") pagesize:Int): ResponseEntity<MutableList<SimpleVideoEntity>>

    /**
     * 根据频道id获取视频列表
     * @param channelId 频道id
     * @param page 页数
     * @param pagesize 每页数量
     */
    @GET("/videosimple/getSimpleVideoByChannelId")
    suspend fun getSimpleVideoByChannelId(@Query("channelId") channelId: String, @Query("page")page: Int, @Query("pagesize") pagesize: Int): ResponseEntity<MutableList<SimpleVideoEntity>>

}